<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>自助华人码审核列表</title>
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<import type='js' file="js.main" />
	<style type="text/css">
		b.w{padding: 4px 8px; background-color:#28b779; color:#fff; border-radius:3px; font-weight:normal;}
		b.w1{background-color:#b6b3b3;}
		b.w2{background-color:#ff5454;}
		b.w3{background-color:#ff5454;}
		b.w4{background-color:#2255a4;}
		a.prev{cursor: pointer;}
	</style>
</head>

<body>
<!-- 预览窗口开始 -->
<div class="previewbg">
	<h3></h3>
	<iframe id="previewwidnow" src="" frameborder="0" scrolling="auto" style="width:370px;"></iframe>
</div>
<!-- 预览窗口结束 -->

<div class="main-frame">
	<div class="position">华人码 > 自助华人码审核列表</div>
	<div class="table-list">
	 <table width="100%" border="1" cellspacing="0" cellpadding="0" class="indextable">
		    <tr class="th-bg">
		      <th width="5%">ID</th>
		      <th width="40%">标题</th>
			  <th width="10%">联系方式</th>
		      <th width="10%">添加时间</th>
		      <th width="6%">状态</th>
		      <th width="25%">操作</th>
	        </tr>
	        <volist name='list' id='v' empty="暂无数据">
		    <tr class="tr-line">
		      <td>{$v.id}</td>
		      <td style="text-align:left; padding-left:6px;">{$v.title}</td>
			  <td>{:W('Menutype/contactway',array('token'=>$v['user_token']))}</td>
		      <td style="font-size:12px;">{$v.cdate}</td>
		      <td>
				  <if condition="$v['status'] eq 0"><b class="w w1">已删除</b></if>
				  <if condition="$v['status'] eq 1"><b class="w w2">未审核</b></if>
				  <if condition="$v['status'] eq 2"><b class="w">已审核</b></if>
				  <if condition="$v['status'] eq 3"><b class="w w2">未通过审核</b></if>
			  </td>
		      <td>
				  &nbsp;&nbsp;<a href="{:U('operation',array('id'=>$v['id'],'s'=>2))}">审核</a>
				  &nbsp;&nbsp;<a href="{:U('operation',array('id'=>$v['id'],'s'=>3))}">取消审核</a>
				  &nbsp;&nbsp;<a href="{:U('operation',array('id'=>$v['id'],'s'=>4))}">未通过审核</a>
				  &nbsp;&nbsp;
				  <if condition="$v['status'] eq 0">
					  <a href="{:U('operation',array('id'=>$v['id'],'s'=>0))}" style="color: #ff5454;">恢复</a>
					  <else />
					  <a href="{:U('operation',array('id'=>$v['id'],'s'=>1))}" style="color: #666;">删除</a>
				  </if>
				  &nbsp;&nbsp;
				  <if condition="$v['status'] neq 0">
					  <a class="prev" path="{:C('WEBDOMAIN')}/Selfhelp/id/{$v.id}/mtst/1" name="{$v.title}"><b class="w w4">预览</b></a>
					  <else />
					  <b class="w w1">预览</b>
				  </if>
			  </td>
	        </tr>
	        </volist>
      </table>
    </div>
	<div class="page">{$page}</div>
</div>
<script type="text/javascript">
	$(function(){
		$("a.prev").each(function(index, element) {
			var t = $(this);
			t.click(function(){
				$(".previewbg").fadeIn();
				var path = $(this).attr("path");
				var titlename = $(this).attr("name");
				$(".previewbg iframe").attr("src",path);
				$(".previewbg h3").html(titlename);
			})
		});
	})
</script>
</body>
</html>
